Click the button to alert the string with removed whitespace.

Note: The trim() method is not supported in Internet Explorer 8 and earlier versions.